import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const SignKey = 'X-Sign'
const TimestampKey = 'X-TIMESTAMP'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getSign() {
  return Cookies.get(SignKey)
}

export function setSign(sign) {
  return Cookies.set(SignKey, sign)
}

export function removeSign() {
  return Cookies.remove(SignKey)
}

export function getTimestamp() {
  return Cookies.get(TimestampKey)
}

export function setTimestamp(timestamp) {
  return Cookies.set(TimestampKey, timestamp)
}

export function removeTimestamp() {
  return Cookies.remove(TimestampKey)
}
